package com.wxw.jwt.po;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author wxw
 * @data 2021/8/30 00 :16
 * @description
 */
@Data
public class JwtToken implements AuthenticationToken {

    @ApiModelProperty("to111ken")
    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}

